package com.justgame.project.service.just.feign;

import com.justgame.project.service.api.feign.IJustGameInfoClient;
import com.justgame.project.service.api.vo.JustGameInfoVO;
import com.justgame.project.service.just.service.JustGameInfoService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZhouWeiBo
 * @create 2022/4/20
 */
@RestController
@AllArgsConstructor
public class JustGameInfoClient implements IJustGameInfoClient {
    private final JustGameInfoService justGameInfoService;

    @Override
    @GetMapping(GET_BY_ID)
    public JustGameInfoVO selectById(@RequestParam("id") String id) {
        return justGameInfoService.selectGameInfoById(id);
    }
}
